import { PROJECT_NAME, SCHOOL_NAME, SCHOOL_URL } from '@/constants';
import { SmileOutlined } from '@ant-design/icons';
import { DefaultFooter } from '@ant-design/pro-components';
import React from 'react';

const Footer: React.FC = () => {
  const defaultMessage = '你好,世界';
  const currentYear = new Date().getFullYear();

  return (
    <DefaultFooter
      style={{ background: 'none' }}
      copyright={`${currentYear} ${defaultMessage}`}
      links={[
        {
          key: SCHOOL_NAME,
          title: SCHOOL_NAME,
          href: SCHOOL_URL,
          blankTarget: true,
        },
        {
          key: 'github',
          title: <SmileOutlined />,
          href: '#',
          blankTarget: false,
        },
        {
          key: PROJECT_NAME,
          title: PROJECT_NAME,
          href: '#',
          blankTarget: false,
        },
      ]}
    />
  );
};

export default Footer;
